package com.raibaz.atm;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import com.raibaz.atm.businesslogic.Instruction;
import com.raibaz.atm.gui.InstructionsAdapter;

public class InstructionsActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Bundle b = getIntent().getExtras();
		ArrayList<Instruction> instructions = (ArrayList<Instruction>)b.get("instructions");
		setContentView(R.layout.instructions);
		ListView list = (ListView)findViewById(R.id.Instructions);
		InstructionsAdapter adapter = new InstructionsAdapter(list.getContext(), R.layout.list_item, instructions);	
		list.setAdapter(adapter);
	}
}
